package cn.modoumama.socket;

import lombok.Getter;
import lombok.Setter;

public class Message {
    @Getter @Setter private String userId;

    @Getter @Setter private String fromTo;
    @Getter @Setter private String toFrom;
    @Getter @Setter private String messageType = HEART_TEXT; // 12 digits
    @Getter @Setter private String message;

    // command types
    public static String HEART_BEAT = "xtpc";             // 心跳包
    public static String HEART_TEXT = "text";             // 心跳包
}
